<?php

/**
 * @author      Nguyen Duc Thuan <me@ndthuan.com>
 * @copyright   Copyright (c) 2009 Nguyen Duc Thuan <me@ndthuan.com>
 * @version     $Id: EntryForm.php 12 2009-11-03 03:17:46Z thuan.nguyen $
 */

class EntryForm extends Fete_Form
{

    protected $_validators = array(
        'e_title' => array('NotEmpty'),
        'e_content' => array('NotEmpty'),
        'e_type' => array('NotEmpty'),
        'e_status' => array('NotEmpty'),
        'e_date_posted' => array('NotEmpty'),
        'e_date_expire' => array('NotEmpty'),
        'e_author' => array('NotEmpty')
    );
    protected $_filters = array(
        'entryid' => array('Trim', 'Intval'),
        'e_title' => array('Trim', 'GetLeft:70'),
        'e_content' => array('Trim'),
        'e_type' => array('Trim', 'Intval'),
        'e_status' => array('Trim', 'Intval'),
        'e_date_posted' => array('Trim', 'Intval'),
        'e_date_expire' => array('Trim', 'Intval'),
        'e_author' => array('Trim', 'GetLeft:50')
    );
}
